<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Plugins\Sms\SendInfo;

class TestsendController extends Controller
{
    /**
     * Create a new controller instance.
     *
     * @return void
     */
    public function __construct()
    {
        $this->middleware('auth');
    }

    /**
     * Show the application dashboard.
     *
     * @return \Illuminate\Http\Response
     */
    public function index()
    {
        $send = new SendInfo();
        $mobile = "15021453041,123456";
        /*
         * 发送短信接口参数
         */
        $data = [
            'sendTime' =>date('Y-m-d H:i:s'),
            'extno'=>null,
            'customer'=>'我是顾客',
            'colleague'=>'我是同事',
            'colleagueNum'=>'同事号码',
            'addTime' =>date('Y-m-d H:i:s'),
            'sendTo'=>'我是转发',
            'sendToNum'=>'我是转发号码',
            'sendNum'=>'12346',
            'WxNum'=>'请叫我爸爸',
            'password'=>'我去你灭'
        ];
        //搜索非法字符查询
        $get_search = '娶你';
        $pwd = [
            'newpwd'=>'yiweilian1020',
            'renewpwd'=>'yiweilian1020'
        ];
        //Send($code,$_filter=[],$mobile = "",$sendTime = null, $extno = null){//对方发送过来的验证码
        $status = 1;
        //$code,$_filter=[],$mobile = ""
        $data = $send->up();
        //$data = $send->Send(1,$data,18079175600,null,null);
        //$data = $send->getInfo();
        //$data = $send->search('请将我大哥');
        $data = $send->changePwd($pwd);
        return $data;
    }
}
